// 引入axios | 路径配置
import { AJAX_PATH } from "@/services/config.js";

// 导入 封装的 有权限请求
import { HTTP_LIMITED } from "@/utils/axios.js";

class JiJianChuKuHttp extends HTTP_LIMITED {
  //基建出库申请单生成基建出库单-查询
  getwarehouseinfrastructuredeliveryList(queryPath) {
    return this._post(
      AJAX_PATH.getwarehouseinfrastructuredeliveryList + queryPath
    );
  }
  //基建工作流-根据源单生成-上半部分
  getJiJianYuanDan(queryPath) {
    return this._get(
      AJAX_PATH.getwarehouseinfrastructuredeliveryList + queryPath
    );
  }
  //生产领料-根据源单生成-通过id查询
  getcreateBySourceById(queryPath) {
    return this._get(AJAX_PATH.getcreateBySourceById + queryPath);
  }
  //在建项目
  getZaiJian() {
    return this._get(AJAX_PATH.getZaiJian);
  }
  //货物总数查询-根据仓库id和物品id查询现存
  getTotalGoods(queryPath) {
    return this._post(AJAX_PATH.getTotalGoods , queryPath);
  }
}
export { JiJianChuKuHttp };
